import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const TokenKeyTime = 'vue_time_token'
// 获取token时间戳
export function getTokenTime() {
  return Cookies.get(TokenKeyTime)
}
// 存储token时间戳
export function setTokenTime(time) {
  return Cookies.set(TokenKeyTime, time)
}
// 获取token
export function getToken() {
  return Cookies.get(TokenKey)
}
// 存储token
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
